Repository navigation
fix(kernel): honor Node.js Arrow compression options - #652
aakash-saravanan-db wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Logic looks correct, with 1 medium concern. Forwarding and precedence are right on both the direct and async paths, and the tests cover every combination. The docs and changelog say support has shipped, but the native package pins haven't been bumped.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
The forwarding logic looks correct, with one medium concern. Both the direct and async paths use the statement value first and fall back to the client setting, and the tests cover all four combinations. The problem is that the docs and CHANGELOG describe support that the native packages pinned in package.json don't ship yet.
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
9fb2352 to
21139f1
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Looks good, with 1 low concern. The client default and per-statement override are forwarded the same way on the direct and async paths, and tests cover both precedence directions. Shipping still depends on a published native package that includes kernel PR #511.
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Status: merge waits for supporting native packages and updated pins; the timing gap below remains open.
Feature or gap
Node.js callers can set
useLZ4Compressionon the client or override it for an individual statement. The kernel backend previously ignored both settings.What this PR addresses
The kernel backend forwards the statement override or the client default for direct and asynchronous queries. Both inline and CloudFetch Arrow results use the requested codec.
Dependencies
Merge requires published native kernel packages supporting the
lz4Compressionexecute option and updated pins for every platform package. Source integration tests pin the supporting kernel revision.Kernel PR: databricks/databricks-sql-kernel#511.
Tests and validation
Type checks, ESLint and 1,859 unit tests passed. Optimized builds passed all six live compression cases and both precedence directions on direct/async paths. For compressed inline results with
runAsync: true, five-pair timing was 542 ms Thrift → 664 ms kernel (+22.4%). Inline uncompressedrunAsync: trueand inline default-path (runAsyncunset) timings with either codec met parity. The released kernel makes the same status and close requests; they contribute cost, but the difference is not fully attributed.